﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DAL.Migrations
{
    public partial class InitDB : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "FangHao_Model",
                columns: table => new
                {
                    FHId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    FH = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    FHZT = table.Column<bool>(type: "bit", nullable: false),
                    FHIsDeleted = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_FangHao_Model", x => x.FHId);
                });

            migrationBuilder.CreateTable(
                name: "FangXing_Model",
                columns: table => new
                {
                    FXId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    FHId = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    FXName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    MSPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    FXNum = table.Column<int>(type: "int", nullable: false),
                    FXZT = table.Column<bool>(type: "bit", nullable: false),
                    FXIsDeleted = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_FangXing_Model", x => x.FXId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "FangHao_Model");

            migrationBuilder.DropTable(
                name: "FangXing_Model");
        }
    }
}
